package com.example.jsf.Repository;

import com.example.jsf.entity.Income;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import java.util.List;


public interface TestRepository extends JpaRepository<Income,Integer> {
    @Query(value = "select * from income order By create_time desc", nativeQuery = true)
    List<Income> getIncomeList();
}
